from ._core import Model


class ModelUserInfo(Model):
    def __init__(self, manage):
        super().__init__(manage=manage, db_name="userinfo", uni_key="uid", ver="local")

    async def getGud(self, uid):
        """获取玩家gud"""
        return await self.get(uid)

    async def updateInfo(self, uid, set_data):
        """更新玩家数据"""
        await self.set(uid, uid, set_data)
